cmake_minimum_required (VERSION 3.26)
project(WuhuaEngine VERSION 0.1.0)

set(CMAKE_CXX_STANDARD 20)

#set output file path add create it
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG 	${CMAKE_CURRENT_LIST_DIR}/build/Debug)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE 	${CMAKE_CURRENT_LIST_DIR}/build/Release)

execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG})
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE})


add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/Engine)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/Applications/)